<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<!--  $Id: layout.jsp,v 1.34 2006/07/23 17:18:21 mgriffa Exp $ -->
<HTML>
<HEAD>
<title></title>
<link rel="stylesheet" href="style.css" type="text/css">
</HEAD>
<body>

<%

String p = request.getParameter("page");
// TODO add better logic for initial page
String initial = "smartaddlog";

// Prevent XSS, accept only limited, expected parameteres for initial iframe
if (
		p!=null && (
			p.equals("add")
			|| p.equals("edit")
			)
		) {
	initial = p;
}


%>

<p>Welcome to logview</p>

<div id="links" style="width: 19%">

<a target="content" href="list">List configured logfiles</a><br/>

<a target="content" href="smartaddlog">Smart Add log</a> <br/>

<a target="content" href="add">Add a file</a> <br/>

<a target="content" href="edit">Edit initialization file</a> <br/>

<a target="content" href="saveall">Save all</a> <br/>

<a target="content" href="removeall">Remove all</a> <br/>


<!-- <a target="content" href="saveall"></a>  -->
Load init file<br/>

<hr/>
<a target="content" href="http://code.google.com/p/logview-web/w/list">Online documentation</a><br/>
<a target="content" href="http://code.google.com/p/logview-web/issues/entry">Report an issue</a><br/>
</div>

<div id="content" style="position: absolute; top: 2px; left: 20%; right: 2px; bottom: 5px;">
<iframe name="content" src="<%=initial %>" style="height: 100%; width: 100%"/>
</div>

</body>
</html>